package com.pxmeta.chat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pxmeta.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("kt_chat_group_apply")
public class ChatGroupApply extends BaseEntity {

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 申请人id
     */
    private Long userId;

    /**
     * 群聊id
     */
    private Long chatGroupId;

    /**
     * 申请理由
     */
    private String reason;

    /**
     * 申请状态
     */
    private Integer status;

    /**
     * 是否删除
     */
    @TableLogic(value = "0",delval = "1")
    private Integer isDel;
}
